import axios from "axios";

// console.log(process.env);
//1.常规请求的axios
const request = axios.create({
  // baseURL: process.env.VUE_APP_API + "/api",
  baseURL: "http://gmall-h5-api.atguigu.cn/" + "api",
  timeout: 5000,
});

//2. mock数据的请求axios
const requestMock = axios.create({
  baseURL: "/api",
  timeout: 5000,
});

export { request, requestMock };
